package pub.guoxin.oops.common.protocol.config;

import com.google.common.collect.Lists;
import lombok.Getter;
import pub.guoxin.oops.common.protocol.adapter.AbstractDataProtocolCodeAdapter;

import java.util.List;

/**
 * Created by guoxin on 18-3-20.
 */
@Getter
public class DataProtocolCodeConfigurer {

    private List<AbstractDataProtocolCodeAdapter> adapters = Lists.newArrayList();

    public DataProtocolCodeConfigurer register(AbstractDataProtocolCodeAdapter dataProtocolCodeAdapter) {
        this.adapters.add(dataProtocolCodeAdapter);
        return this;
    }
}
